// ##############################
// ####  note:  bokeweilai device plug main fun
// ####  create:  TANWENHUI (twh:谭文辉)
// ####  date:   2024/6/18
// ##############################

#include "bk_private/bk_init.h"
#include <components/system.h>
#include <os/os.h>
#include <components/shell_task.h>

#include "cli.h"
#include "doorbell_comm.h"
#include "doorbell_boarding.h"

#include "doorbell_cs2_service.h"
#include "ble_boarding.h"

#include "components/bluetooth/bk_ble.h"
#include "components/bluetooth/bk_dm_ble.h"
#include "components/bluetooth/bk_dm_bluetooth.h"

#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include "pthread.h"
// extern void delay_us(UINT32 us);

void bk_plug_main()
{
	int32 num = 0;
	while (1)
	{
		printf("twh bk_plug_main num=%d\n", num);
		if (num > 0xffff)
			num = 0;
		num++;
		// ms_sleep(1000);
		// usleep(1000);

		// Delay_ms(200);
		rtos_delay_milliseconds(1000);
	}
}
